package com.j.lemon.learn.basic.duotai;

import java.io.IOException;

public class Cat extends Animal {


    int age = 20;
    String name = "cat";

    public void eat() {
        System.out.println("猫在吃");
    }

    public static void sleep() {
        System.out.println("猫在睡觉");
    }

    public void catchMouse() {
        testException();
        System.out.println("猫在抓老鼠");
    }

    public void testException() {
        System.out.println("test exception");
    }

    public static void main(String[] args) {
        Cat cat = new Cat();
        cat.eat();
    }
}
